<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录成功</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #f0f0f0;
        }
        .success-message {
            text-align: center;
            padding: 20px;
            background-color: #4CAF50;
            color: white;
            border-radius: 5px;
        }
        .countdown {
            font-size: 1.2em;
            font-weight: bold;
        }
    </style>
    <script>
        // 倒计时时间（秒）
        let countdownTime = 5;

        // 更新倒计时
        function updateCountdown() {
            const countdownElement = document.getElementById("countdown");
            if (countdownTime > 0) {
                countdownElement.textContent = countdownTime;
                countdownTime--;
                setTimeout(updateCountdown, 1000); // 每秒更新一次
            } else {
                window.location.href = "/"; // 跳转到首页
            }
        }

        // 页面加载完成后启动倒计时
        window.onload = function() {
            updateCountdown();
        };
    </script>
</head>
<body>
    <div class="success-message">
        <h1>登录成功！</h1>
        <p>欢迎回来！您将在 <span id="countdown" class="countdown">5</span> 秒后跳转到首页。</p>
    </div>
</body>
</html>